﻿/*
 * 
 * */

namespace AcctrueWMS.Foundation.Render
{
    using System.Text;
    using System.Collections.Generic;

    public class ModelTemplate
    {
        private string _name;
        private string _displayName;
        private int _renderType;
        private string _dataModel;
        private string _innerText;
        private string _filePath;

        /// <summary>
        /// 模板名称
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        /// <summary>
        /// 显示名
        /// </summary>
        public string DisplayName
        {
            get { return _displayName; }
            set { _displayName = value; }
        }
        /// <summary>
        /// 类型。0，列表；1，新建；2，修改；3，单条展现。
        /// </summary>
        public int RenderType
        {
            get { return _renderType; }
            set { _renderType = value; }
        }
        /// <summary>
        /// 关联模型
        /// </summary>
        public string DataModel
        {
            get { return _dataModel; }
            set { _dataModel = value; }
        }
        /// <summary>
        /// 模板内容
        /// </summary>
        public string InnerText
        {
            get { return _innerText; }
            set { _innerText = value; }
        }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath
        {
            get { return _filePath; }
            set { _filePath = value; }
        }
        /// <summary>
        /// Meta信息
        /// </summary>
        public Dictionary<string, string> Meta
        {
            get;
            set;
        }
        /// <summary>
        /// Section信息
        /// </summary>
        public Dictionary<string, SectionItem> Sections
        {
            get;
            set;
        }

    }
}
